﻿#ifndef WIN32_H
#define WIN32_H

#include <string>
using namespace std;

typedef HANDLE CMS_OS_MUTEX;
CMS_OS_MUTEX cms_os_mutex_create();
void cms_os_mutex_delete(CMS_OS_MUTEX m);
void cms_os_mutex_lock(CMS_OS_MUTEX m);
void cms_os_mutex_unlock(CMS_OS_MUTEX m);

class cms_os_mutex_wrapper
{
public:
	cms_os_mutex_wrapper(CMS_OS_MUTEX mutex);
	~cms_os_mutex_wrapper();
private:
	CMS_OS_MUTEX m_mutex;
};

string cms_os_generateId(string serviceName);

#endif
